package com.xiqin.microserviceservice.base;

import com.github.pagehelper.PageInfo;
import com.xiqin.microservicebean.system.SystemUser;

import java.util.List;
import java.util.Map;

/**
 * @Author TaoQiansheng
 * @Date 2020-04-29 16:08
 * @Version 1.0
 */
public interface BaseService<T> {


    int deleteByPrimaryKey(Integer id);


    int insert(T record);


    int insertSelective(T record);


    T selectByPrimaryKey(Integer id);


    int updateByPrimaryKeySelective(T record);


    int updateByPrimaryKey(T record);

    PageInfo<T> selectByConditionsForPage(Map conditons);

    List<T> selectByConditions(Map conditions);

}
